package com.flash.media.controller;

import com.flash.media.fegin.MongoFegin;
import com.flash.media.service.WsService;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
* @description: TODO
* @author admin
* @date 2023/1/2711:56
* @version 1.0
*/
@RequestMapping("ws")
@RestController
public class WsController {

    @Autowired
    WsService wsService;

    @Autowired
    RabbitTemplate rabbitTemplate;

    @Autowired
    RedisTemplate redisTemplate;
    @GetMapping("cs")
    public void  test(){
        String test = wsService.cs();
        System.out.println(test);
        redisTemplate.opsForValue().set("cs","21");
    }
}
